﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/*
* University of Reykjavík
* Brjóstagjöf.is is the product of first-year practical programming course
* for computer science students at said university
*
* URL: http://code.google.com/p/scags 
* Authors: 
* Ástvaldur Sigurðsson
* Guðjón Jónsson
* Kristín Inga Vigfúsdóttir
* Steinar Bragi Sigurðsson
* Sveinn Ernstsson
*/

namespace skags.Models
{
    /* Þetta interface var búið til fyrir einingaprófanir, sjá TestVerk lausnina */
    public interface IDataRepository
    {
        void Save();
        void UpdateReadCount(Article articleItem);
        ArticleTablesViewModel GetAll(int limit = 30);
        IEnumerable<ArticleViewModel> GetAllArticles();
        ArticleTablesViewModel GetArticlesByCategoryID(int id);
        IEnumerable<ArticleCategory> GetAllCategories();
        Article GetArticleByID(int id);
        ArticleCatViewModel GetArticleCatByID(int id);
        ArticleCategory GetArticleCategoryByID(int id);
        void UpdateArticleCategory(ArticleCategory item);
        void AddArticle(Article item);
        void AddArticleCategory(ArticleCategory item);
        void DeleteArticle(int id);
        void DeleteArticleCategory(int id);

    }
}
